package com.metaera.app.ui.activities;

import android.os.Bundle;
import android.view.View;

import com.metaera.app.R;
import com.metaera.app.ui.core.BaseActivity;
import com.metaera.app.utils.ActivityTitleHelper;

/**
 * 消息中心
 */
public class MessageCenterActivity extends BaseActivity {

    @Override
    protected int getContentLayoutId() {
        return R.layout.activity_message_center;
    }

    @Override
    protected void initialize(Bundle savedInstanceState) {
        ActivityTitleHelper.setTitle(this, R.string.mesage_center_text);

        findViewById(R.id.layout_content).setOnClickListener(v ->
                startActivity(MessageListActivity.newInstance(this, getString(R.string.msg_center_jin_xuan))));

        findViewById(R.id.layout_msg_center).setOnClickListener(v ->
                startActivity(MessageListActivity.newInstance(this, getString(R.string.msg_center_system))));

        findViewById(R.id.layout_msg).setOnClickListener(v ->
                startActivity(MessageListActivity.newInstance(this, getString(R.string.msg_center_hd))));

        findViewById(R.id.layout_msg_feedback).setOnClickListener(v ->
                startActivity(MessageListActivity.newInstance(this, getString(R.string.msg_center_feedback))));
    }

}
